package com.zhuiyun.project.api.tag.mapper;
import com.zhuiyun.project.api.tag.entity.UserTag;
import com.zhuiyun.project.api.tag.entity.Tag;
import com.zhuiyun.project.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @ClassName TagMapper
 * @Description TODO
 * @Author XMY
 * @Date 2023/12/13 16:41
 **/
@Mapper
public interface TagMapper extends BaseMapper<Tag> {
    @Delete("delete from user_tag where user_id = #{userId}")
    int deleteUserTag(int userId);
    @Insert("insert into user_tag(user_id,tag_id)values(#{userId},#{tagId})")
    int batchInsertUserTag(UserTag userTag);
}
